package nc.ui.pr.pr1110;

import java.awt.Container;

import nc.ui.trade.businessaction.IPFACTION;
import nc.ui.trade.check.BeforeActionCHK;
import nc.vo.pub.AggregatedValueObject;
import nc.vo.trade.checkrule.VOChecker;

public class ClientCHK extends BeforeActionCHK {

	public ClientCHK() {

	}

	public void runBatchClass(Container parent, String billType, String actionName, AggregatedValueObject[] vos,
			Object[] obj) throws Exception {

	}

	public void runClass(Container parent, String billType, String actionName, AggregatedValueObject vo, Object obj)
			throws Exception {
		if (actionName.equals(IPFACTION.SAVE)) {
			if (!VOChecker.check(vo, ClientCheckRules.getInstance()))
				throw new nc.vo.pub.BusinessException(VOChecker.getErrorMessage());
		}
	}
	
}
